//package org.itzixi.config;
//
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
//
//@Configuration
//@Slf4j
//public class StaticResourceConfig extends WebMvcConfigurationSupport {
//
//
//    /**
//     * 添加静态文件映射路径
//     * @param registry
//     */
////    @Override
////    protected void addResourceHandlers(ResourceHandlerRegistry registry) {
////        log.info("加载StaticResourceConfig..........");
////        registry.addResourceHandler("/**")
////                .addResourceLocations("file:D:/upload/wechat-netty");
////
////
////
////    }
//
//    @Override
//    protected void addResourceHandlers(ResourceHandlerRegistry registry){
//        registry.addResourceHandler("/static/**")
//                // 注意注意：这里是三个斜杠
//                .addResourceLocations("file:///D:/upload/");
//        super.addResourceHandlers(registry);
//    }
//}
